package com.learn.xmls;

import com.learn.xmls.services.IXmlService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class XmlsApplication {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring-xmlconfig.xml");

        IXmlService xmlService = (IXmlService) context.getBean("xmlService");
        System.out.println("======================================");
        xmlService.save("李易峰");
        System.out.println("======================================");
        xmlService.query("98963r87678");

        context.destroy();
    }
}
